package com.zzyl.mapper;

import com.github.pagehelper.Page;
import com.zzyl.entity.NursingPlan;
import com.zzyl.vo.NursingPlanVo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface NursingPlanMapper {
    List<NursingPlanVo> selectAll();

    Page<NursingPlanVo> selectByCondition(String name, Integer status);

    NursingPlanVo getById(Long id);

    int addNPlan(NursingPlan nursingPlan);

    int deleteById(Long id);

    int updateStatus(Long id, Integer status);

    int update(NursingPlan plan);
}
